package com.example.study.mapper;

import com.example.study.dao.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;



public interface UserMapper{
    /**
     * @param username
     * @return
     */
    User getUserByName(String username);

    User getAll();

    @Insert("insert into user (user_name, password) values (#{username}, #{password})")
    Integer insertUser(User user);


    User getRoles(User user);

    User getById(String id);
}
